import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

const router = new Router({
  routes: [
    {
      path: '/',
      name: 'helloWorld',
      component: resolve => require(['@/compoments/hello'], resolve)
    }
  ]
})

router.beforeEach((to, from, next) => {
  next()
})

export default router